cmake_minimum_required(VERSION 3.8)
project(filesystem_glob)
file(GLOB var1 "${PROJECT_SOURCE_DIR}/test/*")
message(STATUS "var1 = ${var1}")
file(GLOB var2 "${PROJECT_SOURCE_DIR}/test/*.h")
message(STATUS "var2 = ${var2}")
file(GLOB var3 "${PROJECT_SOURCE_DIR}/test/a.v?")
message(STATUS "var3 = ${var3}")
file(GLOB var4 "${PROJECT_SOURCE_DIR}/test/file[2-3].txt")
message(STATUS "var4 = ${var4}")

file(GLOB var5 LIST_DIRECTORIES 0 "${PROJECT_SOURCE_DIR}/test/*")
message(STATUS "var5 = ${var5}")
file(GLOB var6 RELATIVE "${PROJECT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}/test/*.h")
message(STATUS "var6 = ${var6}")
file(GLOB var7 CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/test/a.v?")
message(STATUS "var7 = ${var7}")

file(GLOB_RECURSE var8 RELATIVE "${PROJECT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}/test/*.h")
message(STATUS "var8 = ${var8}")
file(GLOB_RECURSE var9 FOLLOW_SYMLINKS RELATIVE "${PROJECT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}/test/*.h")
message(STATUS "var9 = ${var9}")
file(GLOB_RECURSE var10 LIST_DIRECTORIES 1 RELATIVE "${PROJECT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}/test/*.h")
message(STATUS "var10 = ${var10}")
file(GLOB_RECURSE var11 FOLLOW_SYMLINKS LIST_DIRECTORIES 1 RELATIVE "${PROJECT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}/test/*.h")
message(STATUS "var11 = ${var11}")
